//package com.anyou.mall.sho.controller;
//
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.core.page.TableDataInfo;
//import com.anyou.common.enums.BusinessType;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.mall.sho.domain.CarPartsShopAudit;
//import com.anyou.mall.sho.param.IsPassCarPartsShopAuditParam;
//import com.anyou.mall.sho.param.IsPassCarPartsShopCertAudit;
//import com.anyou.mall.sho.service.ICarPartsShopAuditService;
//import com.anyou.mall.sho.vo.CarPartsShopAuditListVo;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 汽配商认证审核Controller
// *
// * @author gaochaohao
// * @date 2022-05-04
// */
//@Api(tags = "汽配商认证审核")
//@RestController
//@RequestMapping("/sho/carPartsShopCertAudit")
//public class CarPartsShopCertAuditController extends BaseController
//{
//    @Autowired
//    private ICarPartsShopAuditService carPartsShopAuditService;
//
//    /**
//     * 查询汽配商认证审核列表
//     */
//    @ApiOperation("查询汽配商认证审核列表")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<CarPartsShopAudit>> list(CarPartsShopAudit carPartsShopAudit)
//    {
//        startPage();
//        List<CarPartsShopAuditListVo> list = carPartsShopAuditService.selectCarPartsShopAuditList(carPartsShopAudit);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出汽配商认证审核列表
//     */
//    @ApiOperation("导出汽配商认证审核列表")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:export')")
//    @Log(title = "汽配商认证审核", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, CarPartsShopAudit carPartsShopAudit)
//    {
//        List<CarPartsShopAuditListVo> list = carPartsShopAuditService.selectCarPartsShopAuditList(carPartsShopAudit);
//        ExcelUtil<CarPartsShopAuditListVo> util = new ExcelUtil<CarPartsShopAuditListVo>(CarPartsShopAuditListVo.class);
//        util.exportExcel(response, list, "汽配商认证审核数据");
//    }
//
//    /**
//     * 获取汽配商认证审核详细信息
//     */
//    @ApiOperation("获取汽配商认证审核详细信息")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:query')")
//    @GetMapping(value = "/{carPartsShopAuditId}")
//    public ApiResult<CarPartsShopAuditListVo> getInfo(@PathVariable("carPartsShopAuditId") Long carPartsShopAuditId)
//    {
//        return ApiResult.success(carPartsShopAuditService.selectCarPartsShopAuditDetailsByCarPartsShopAuditId(carPartsShopAuditId));
//    }
//
//    /**
//     * 新增汽配商认证审核
//     */
//    @ApiOperation("新增汽配商认证审核")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:add')")
//    @Log(title = "汽配商认证审核", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody CarPartsShopAudit carPartsShopAudit)
//    {
//        return ApiResult.success(carPartsShopAuditService.insertCarPartsShopAudit(carPartsShopAudit));
//    }
//
//    /**
//     * 修改汽配商认证审核
//     */
//    @ApiOperation("修改汽配商认证审核")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:edit')")
//    @Log(title = "汽配商认证审核", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody CarPartsShopAudit carPartsShopAudit)
//    {
//        return ApiResult.success(carPartsShopAuditService.updateCarPartsShopAudit(carPartsShopAudit));
//    }
//
//    /**
//     * 删除汽配商认证审核
//     */
//    @ApiOperation("删除汽配商认证审核")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:remove')")
//    @Log(title = "汽配商认证审核", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{carPartsShopAuditIds}")
//    public ApiResult remove(@PathVariable Long[] carPartsShopAuditIds)
//    {
//        return ApiResult.success(carPartsShopAuditService.deleteCarPartsShopAuditByCarPartsShopAuditIds(carPartsShopAuditIds));
//    }
//
//    /**
//     * 是否通过汽配商认证
//     */
//    @ApiOperation("是否通过汽配商认证")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:isPass')")
//    @Log(title = "通过汽配商认证", businessType = BusinessType.UPDATE)
//    @PostMapping("/isPass")
//    public ApiResult isPassCarPartsShopAudit(@RequestBody IsPassCarPartsShopCertAudit isPassCarPartsShopCertAudit) {
//        return carPartsShopAuditService.isPassCarPartsShopAudit2(isPassCarPartsShopCertAudit);
//    }
//
//    /**
//     * 批量通过审核
//     */
//    @ApiOperation("批量通过认证")
//    @PreAuthorize("@ss.hasPermi('sho:carPartsShopCertAudit:AllPass')")
//    @Log(title = "汽配商批量通过认证", businessType = BusinessType.UPDATE)
//    @PostMapping("/allPass/{carPartsShopAuditIds}")
//    public ApiResult allPass(@PathVariable Long[] carPartsShopAuditIds) {
//        return carPartsShopAuditService.allPassPassCarPartsShopAudit2(carPartsShopAuditIds);
//    }
//}
